package week10;
import java.util.Scanner;

public class Hd {
	public static void main(String[] args){
		int[] arr = new int [5];
		String str = null;
		Scanner in = new Scanner(System.in);
		while(in.hasNext()){
			String c = in.next();
			try{
				if(c.equals("arr")){
					int ind  = in.nextInt();
					arr[ind] = 1;
				}
				else if(c.equals("null")){
					str.length();
				}else if(c.equals("cast")){
					Object o = new String("str");
					Integer x = (Integer)o;
				}else if(c.equals("num")){
					String intnum = in.next();
					Integer.parseInt(intnum);
				}else break;
			}catch(Exception e){
				System.out.println(e);
			}
		}in.close();
	}
}